package cn.jhc.lifecycle;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import static cn.jhc.lifecycle.LogUtil.output;
/**
 * Created by luyanfei on 16-2-29.
 */
public class SecondFragment extends Fragment {

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        output();
        return inflater.inflate(R.layout.fragment_second, container, false);
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        output();
    }

    @Override
    public void onStart() {
        super.onStart();
        output();
    }

    @Override
    public void onResume() {
        super.onResume();
        output();
    }

    @Override
    public void onPause() {
        super.onPause();
        output();
    }

    @Override
    public void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
        output();
    }

    @Override
    public void onStop() {
        super.onStop();
        output();
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        output();
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        output();
    }

    @Override
    public void onDetach() {
        super.onDetach();
        output();
    }
}
